﻿<UserControl x:Class="Road3App.Views.UserControls.EditControls.Crossroad.TrafficLightUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:c="clr-namespace:Road3App.Services.Converters">
    <Grid>
        <Grid.Resources>
            <c:TrafficLightStateToColorConverter x:Key="tlConv"/>
        </Grid.Resources>
        <Rectangle Width="50" Height="50" 
                   Fill="{Binding Path=TrafficLight.State, Converter={StaticResource tlConv}}"
                   MouseLeftButtonDown="Rectangle_MouseLeftButtonDown_1"/>
    </Grid>
</UserControl>
